package com.yl.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.model.entity.RuyuanfeiBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 王帅洋
 * @belongsProject: ln-ylHouse
 * @belongsPackage: com.ln.auth.mapper
 * @Date 2023/6/16 15:38
 * @description: TODO
 * @version: 1.0
 */
@Mapper
public interface RuyuanfeiMapper extends BaseMapper<RuyuanfeiBean> {
    IPage<RuyuanfeiBean> selepage (Page<RuyuanfeiBean> page, @Param("ru")RuyuanfeiBean ruyuanfeiBean);

    RuyuanfeiBean getById(@Param("id") Long id);

    @Select("SELECT laoren_id from ruyuanfeiyong where id=#{id}")
    RuyuanfeiBean getByIds(Long id);
}
